package entity;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement(name="课程成绩",namespace="http://jw.nju.edu.cn/schema")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(propOrder = {"type","courseId","detail"})
public class FailedScore{

	@XmlAttribute(name="成绩性质")
	private String type;
	@XmlAttribute(name="课程编号")
	private String courseId;
	@XmlElement(name="成绩",namespace="http://jw.nju.edu.cn/schema")
	private ScoreDetail detail;
	
	public FailedScore() {
		// TODO Auto-generated constructor stub
	}
	
	public FailedScore(String type, String courseId, String sid, int score) {
		super();
		this.type = type;
		this.courseId = courseId;
		this.detail=new ScoreDetail(sid,score);
	}

	public ScoreDetail getDetail() {
		return detail;
	}

	public void setDetail(ScoreDetail detail) {
		this.detail = detail;
	}

	public String getType() {
		return type;
	}

	public String getCourseId() {
		return courseId;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}


}
